﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ContractAdd.aspx.cs" Inherits="ITOMMS.Web.Contract.ContractAdd" %>

<%@ Register Src="../Control/HeadControl.ascx" TagName="HeadControl" TagPrefix="uc4" %>
<%@ Register Src="../Control/FootControl.ascx" TagName="FootControl" TagPrefix="uc3" %>
<%@ Register Src="../Control/leftMenuControl.ascx" TagName="leftMenuControl" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>合同添加</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div id="content1">
                <table class="tblDataArea" width="100%">
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" colspan="4">
                            <div style="width: 210px;" class="title">
                                <img src="../images/lv3.gif" style="margin-bottom: -3px;" /><asp:Label ID="titleInfo"
                                    runat="server" Text="合同添加"></asp:Label></div>
                                       <asp:Button ID="btnBack" CssClass="cssButton" runat="server" Text="返回" OnClick="btnBack_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            合同编号：</td>
                        <td class="tdQueryField">
                            <asp:TextBox ID="txtContractNo" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'"></asp:TextBox></td>
                        <td class="tdQueryCaption">
                            公司名称：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddlCustomer" runat="server" Width="162px">
                            </asp:DropDownList><span style="color: #ff0000">*</span></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            服务类别：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddlServiceType" runat="server" Width="162px">
                            </asp:DropDownList><span style="color: #ff0000">*</span></td>
                        <td class="tdQueryCaption">
                            合同签订时间：</td>
                        <td class="tdQueryField">
                            <asp:TextBox ID="txtJudgementDate" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox><span
                                    style="color: #ff0000">*</span></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            合同生效时间：</td>
                        <td class="tdQueryField">
                            <asp:TextBox ID="txtEffectiveTime" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox><span
                                    style="color: #ff0000">*</span></td>
                        <td class="tdQueryCaption">
                            合同到期时间：</td>
                        <td class="tdQueryField">
                            <asp:TextBox ID="txtExpirationTime" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox><span
                                    style="color: #ff0000">*</span></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            提醒类别：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddl提醒类别" runat="server" Width="162px">
                                <asp:ListItem Value="1">月度</asp:ListItem>
                                <asp:ListItem Value="2">季度</asp:ListItem>
                                <asp:ListItem Value="3">半年</asp:ListItem>
                                <asp:ListItem Value="4">年度</asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="tdQueryCaption">
                            缴费提醒日期：</td>
                        <td class="tdQueryField">
                            <asp:TextBox ID="txt提醒日期" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            附件上传：</td>
                        <td class="tdQueryField" colspan="3">
                            &nbsp;<asp:FileUpload ID="FileUpload1" runat="server" CssClass="input_out" />
                            <asp:Label ID="Label1" runat="server" Visible="false"><a href='../UpLoadFiles/<%=sAttachment%>' target="_blank"><img src="../images/icon_download_02.gif" alt="." style="margin-bottom:-5px"/>下载附件</a></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            备注事项：</td>
                        <td class="tdQueryField" colspan="3">
                            <asp:TextBox ID="txtRemarks" runat="server" TextMode="MultiLine" class="input_out"
                                onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"
                                Height="235px" Width="610px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" colspan="4" style="text-align: center; height: 31px;">
                            <asp:Button ID="btnSave" runat="server" CssClass="cssButton" Text="保存" OnClientClick="javascript:return confirm('你确认要提交吗?');"
                                OnClick="btnSave_Click" /></td>
                    </tr>
                </table>
            </div>
    </form>
</body>
</html>

<script type="text/javascript">

function check()
{
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

    $("#txtExpirationTime").attr("dataType","Require");
    $("#txtExpirationTime").attr("tip", " ");
    
    $("#txtEffectiveTime").attr("dataType","Require");
    $("#txtEffectiveTime").attr("tip", " ");
    
    $("#txtJudgementDate").attr("dataType","Require");
    $("#txtJudgementDate").attr("tip", " ");
    
    
      $("#ddlServiceType").attr("dataType","OverEqualsZero");
      $("#ddlServiceType").attr("tip", " ");

      $("#ddlCustomer").attr("dataType","OverEqualsZero");
      $("#ddlCustomer").attr("tip", " ");
                
</script>

